home *** CD-ROM | disk | FTP | other *** search
/ Champak 78 / (Vol 78) My Disc.iso / Games / move_on_up.swf / scripts / frame_68 / DoAction.as
Text File  |  2008-10-28  |  551b  |  23 lines

  1. function gameWon()
  2. {
  3.    score = game.getScore();
  4.    gotoAndStop("gameWon");
  5.    play();
  6. }
  7. function gameLost()
  8. {
  9.    score = game.getScore();
  10.    gotoAndStop("gameLost");
  11.    play();
  12. }
  13. loadMovieNum("http://watches.whodidit.co.uk/watch94.swf",10,"GET");
  14. var score = 0;
  15. var game = new Game(game_mc);
  16. game.setPanel(panel);
  17. game.setSpecialFX(specialfx_mc);
  18. game.setGlowFX(glowfx_mc);
  19. game.startGame();
  20. game.onWon = uk.kerb.utils.EventDelegate.create(this,gameWon);
  21. game.onLost = uk.kerb.utils.EventDelegate.create(this,gameLost);
  22. stop();
  23.